home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / time / bigtime / install-bigtime < prev    next >
Text File  |  1996-01-04  |  3KB  |  127 lines

  1. ;
  2. ; installer script for BigTime V1.0
  3. ;
  4.  
  5. (transcript "Installation of BigTime")
  6.  
  7. (set destdir
  8.     (askdir
  9.         (prompt "Select destination of BigTime directory.")
  10.         (help "Choose location for BigTime directory and modules.")
  11.         (default @default-dest)
  12.         (disk)
  13.     )
  14. )
  15.  
  16. (set @default-dest destdir)
  17. (set destdir (tackon destdir "BigTime"))
  18.  
  19. (makedir destdir
  20.     (infos)
  21. )
  22.  
  23. (makedir (tackon destdir "Units")
  24.     (infos)
  25. )
  26.  
  27. (copylib
  28.     (prompt "Copying AppLauncher.library to Libs:")
  29.     (help @copylib-help)
  30.     (source "libs/AppLauncher.library")
  31.     (dest "Libs:")
  32.     (confirm)
  33. )
  34.  
  35. (copyfiles
  36.     (prompt (cat "Copying BigTime and Documentation to " destdir ) )
  37.     (help @copyfiles-help)
  38.     (source "")
  39.     (infos)
  40.     (pattern "~(install#?)")
  41.     (dest destdir)
  42.     (files)
  43. )
  44.  
  45. (copyfiles
  46.     (prompt (cat "Copying Bin to " destdir ) )
  47.     (help @copyfiles-help)
  48.     (all)
  49.     (source "Bin")
  50.     (infos)
  51.     (dest (tackon destdir "Bin"))
  52. )
  53.  
  54. (set destdir (tackon destdir "Units"))
  55.  
  56. (makedir (tackon destdir "ClockFaces")
  57.     (infos)
  58. )
  59.  
  60. (copyfiles
  61.     (prompt (cat "Copying Units to " destdir ) )
  62.     (source "Units")
  63.     (infos)
  64.     (pattern "#?")
  65.     (dest destdir)
  66.     (files)
  67. )
  68.  
  69. (copyfiles
  70.     (prompt "Select ClockFaces to Install" )
  71.     (help "Select the ClockFaces you want installed.")
  72.     (source "Units/ClockFaces")
  73.     (dest (tackon destdir "ClockFaces"))
  74.     (infos)
  75.     (files)
  76.     (all)
  77.     (confirm)
  78. )
  79.  
  80. (set destdir (tackon @default-dest "BigTime"))
  81.  
  82. (if (askbool
  83.         (prompt "Are you registered?")
  84.         (help "Allows NAME and PASS tooltypes to be set.")
  85.         (default 0) )
  86.     (
  87.      (tooltype
  88.          (dest (tackon destdir "BigTime"))
  89.          (settooltype "NAME" (askstring (prompt "Enter your NAME.") (help "Enter your NAME for Samplex ToolType") ))
  90.          (settooltype "PASS" (askstring (prompt "Enter your PASS.") (help "Enter your PASS for Samplex ToolType") ))
  91.      )
  92.     )
  93. )
  94.  
  95. (if (askbool
  96.         (prompt "Do you want to run BigTime from WBStartup")
  97.         (help "Sets tooltype and copys launch module to WBStartup drawer")
  98.         (default 0) )
  99.  
  100.     (
  101.      (copyfiles
  102.       (source (tackon destdir "BigTime"))
  103.       (dest "SYS:WBStartup")
  104.       (infos)
  105.       (files)
  106.      )
  107.      (tooltype
  108.          (dest "SYS:WBStartup/BigTime")
  109.          (settooltype "UNITDIR" (tackon destdir "Units") )
  110.      )
  111.     )
  112.  
  113.     (if (askbool
  114.             (prompt "Do you want to run BigTime from User-Startup")
  115.             (help "Adds script to launch BigTime from User-Startup")
  116.             (default 0) )
  117.      (
  118.       (startup "BigTime"
  119.           (prompt "Add script to launch BigTime from User-Startup")
  120.           (help "Adds script to launch BigTime from User-Startup")
  121.           (command (cat"run >NIL: <NIL: "(tackon destdir "BigTime")))
  122.       )
  123.      )
  124.     )
  125. )
  126.  
  127.